/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Carla Painemilla
 * License Type: Evaluation
 */
package orm;

import java.io.Serializable;
/**
 * Tabla que almacena los datos de un curso
 */
public class Curso implements Serializable {
	public Curso() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_CURSO_ALUMNO) {
			return ORM_alumno;
		}
		else if (key == orm.ORMConstants.KEY_CURSO_SUBSECTOR) {
			return ORM_subsector;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int curso_id;
	
	private String curso_nom;
	
	private java.util.Set ORM_alumno = new java.util.HashSet();
	
	private java.util.Set ORM_subsector = new java.util.HashSet();
	
	/**
	 * Atributo que identifica el curso a través de un código.
	 */
	private void setCurso_id(int value) {
		this.curso_id = value;
	}
	
	/**
	 * Atributo que identifica el curso a través de un código.
	 */
	public int getCurso_id() {
		return curso_id;
	}
	
	public int getORMID() {
		return getCurso_id();
	}
	
	public void setCurso_nom(String value) {
		this.curso_nom = value;
	}
	
	public String getCurso_nom() {
		return curso_nom;
	}
	
	private void setORM_Alumno(java.util.Set value) {
		this.ORM_alumno = value;
	}
	
	private java.util.Set getORM_Alumno() {
		return ORM_alumno;
	}
	
	public final orm.AlumnoSetCollection alumno = new orm.AlumnoSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_CURSO_ALUMNO, orm.ORMConstants.KEY_ALUMNO_CURSOCURSO, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	private void setORM_Subsector(java.util.Set value) {
		this.ORM_subsector = value;
	}
	
	private java.util.Set getORM_Subsector() {
		return ORM_subsector;
	}
	
	public final orm.SubsectorSetCollection subsector = new orm.SubsectorSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_CURSO_SUBSECTOR, orm.ORMConstants.KEY_SUBSECTOR_CURSOCURSO, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getCurso_id());
	}
	
}
